import {
    openBluetoothAdapter, closeBluetoothAdapter, getBluetoothAdapterState, onBluetoothAdapterStateChange, offBluetoothAdapterStateChange,
    onBluetoothDeviceFound, offBluetoothDeviceFound, startBluetoothDevicesDiscovery, getBluetoothDevices, stopBluetoothDevicesDiscovery,
    onBLEConnectionStateChange, offBLEConnectionStateChange, createBLEConnection, closeBLEConnection, onBLEMTUChange, offBLEMTUChange,
    setBLEMTU, getBLEMTU, getBLEDeviceServices, getBLEDeviceCharacteristics, readBLECharacteristicValue, writeBLECharacteristicValue, 
    batchWriteBLECharacteristicValue, notifyBLECharacteristicValueChange, onBLECharacteristicValueChange, offBLECharacteristicValueChange,
} from '@/uni_modules/xl-uts-bluetooth';

// 做一层API函数的导入映射
export default {
    openBluetoothAdapter               : openBluetoothAdapter              , 
    closeBluetoothAdapter              : closeBluetoothAdapter             ,
    getBluetoothAdapterState           : getBluetoothAdapterState          ,
    onBluetoothAdapterStateChange      : onBluetoothAdapterStateChange     ,
    offBluetoothAdapterStateChange     : offBluetoothAdapterStateChange    ,
    onBluetoothDeviceFound             : onBluetoothDeviceFound            ,
    offBluetoothDeviceFound            : offBluetoothDeviceFound           ,
    startBluetoothDevicesDiscovery     : startBluetoothDevicesDiscovery    ,
    getBluetoothDevices                : getBluetoothDevices               ,
    stopBluetoothDevicesDiscovery      : stopBluetoothDevicesDiscovery     ,
    onBLEConnectionStateChange         : onBLEConnectionStateChange        ,
    offBLEConnectionStateChange        : offBLEConnectionStateChange       ,
    createBLEConnection                : createBLEConnection               ,
    closeBLEConnection                 : closeBLEConnection                ,
    onBLEMTUChange                     : onBLEMTUChange                    ,
    offBLEMTUChange                    : offBLEMTUChange                   ,
    setBLEMTU                          : setBLEMTU                         ,
    getBLEMTU                          : getBLEMTU                         ,
    getBLEDeviceServices               : getBLEDeviceServices              ,
    getBLEDeviceCharacteristics        : getBLEDeviceCharacteristics       ,
    readBLECharacteristicValue         : readBLECharacteristicValue        ,
    writeBLECharacteristicValue        : writeBLECharacteristicValue       ,
    batchWriteBLECharacteristicValue   : batchWriteBLECharacteristicValue  ,
    notifyBLECharacteristicValueChange : notifyBLECharacteristicValueChange,
    onBLECharacteristicValueChange     : onBLECharacteristicValueChange    ,
    offBLECharacteristicValueChange    : offBLECharacteristicValueChange   ,
};